package lab01;

import java.util.Scanner;

/**
 * Created by lenovo on 2017/9/29.
 */
import java.util.Scanner;
public class Test06 {
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入学生的成绩：");
        int x=sc.nextInt();
        if(x>=85){
            System.out.println(x+"  A级");}
        else if(x<85&&x>=70){
            System.out.println(x+"  B级");}
        else if(x<70&&x>=60){
            System.out.println(x+"  C级");}
        else if(x<60){
            System.out.println(x + "D级");}
        else if(x>100){
            System.out.println(x+"  成绩输入错误");}
    }
}//输入学生的学习成绩，给出相应的等级
